#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTreeWidget>
#include <QTreeWidgetItem>
#include <QDir>
#include <QListWidget>
#include <QListWidgetItem>
#include <QDialog>
#include <QLabel>
#include <cstring>
#include <QDialogButtonBox>
#include <QProgressBar>
#include <QTimer>
#include <QMessageBox>

extern "C" {
#include "backup.h"
#include "sync.h"
}

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void populateTreeWidgetWithDirs(QTreeWidget *treeWidget, QTreeWidgetItem *parentItem, const QString &path);

private slots:
    void on_srcBtn_clicked();

    void on_newTaskBtn_clicked();

    void on_delTaskBtn_clicked();

private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
